import java.util.Scanner;

public class Text19092501 {
public static void main(String[] args) {
	Scanner scanner=new Scanner(System.in);
	double a,b;
	a=scanner.nextDouble();
	b=scanner.nextDouble();
	
	int k=(int)(a/b);
	double r=a-k*b;
	System.out.printf("%d,%.2f",k,r);

	scanner.close();
}
}
